﻿@model IEnumerable<Illinois.UI.Models.BurnDownViewModel>

@{
  ViewBag.Title = "BurnDown Chart - List";
  ViewBag.ActionsHeader = "Actions";
}

<h2>@ViewBag.Title</h2>
  
<div class="btn-toolbar">
  <div class="btn-group">
    <a class="btn" href="@Url.Action("Create", "BurnDown")"><i class="icon-plus"></i> New</a>
  </div>
</div>  

<table class="table table-condensed table-hover table-bordered table-striped">
  <thead>
    <tr>
      <th>@Html.DisplayNameFor(model => model.Title)</th>
      <th>@Html.DisplayNameFor(model => model.Start)</th>
      <th>@Html.DisplayNameFor(model => model.End)</th>
      <th>@Html.DisplayNameFor(model => model.InitialStoryPoints)</th>
      <th>@ViewBag.ActionsHeader</th>
    </tr>
  </thead>
  <tbody>
  @foreach (var item in Model)
  {
    <tr>
      <td>@Html.DisplayFor(modelItem => item.Title)</td>
      <td>@Html.DisplayFor(modelItem => item.Start)</td>
      <td>@Html.DisplayFor(modelItem => item.End)</td>
      <td>@Html.DisplayFor(modelItem => item.InitialStoryPoints)</td>
      <td>
        @Html.ActionLink("Edit", "Edit", new { id = item.Id }) |
        @Html.ActionLink("Details", "Details", new { id = item.Id }) |
        @Html.ActionLink("Delete", "Delete", new { id = item.Id })
      </td>
    </tr>
  }
  </tbody>
</table>
